package com.learner.vod.handle;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.profile.DefaultProfile;

/**
* @Description: 阿里云初始化工具类
* @Author: ice2020x
* @Date: 2021/10/9
*/
public class AliyunVodSdkHandle {

    public static DefaultAcsClient initVodClient(String accessKeyId, String accessKeySecret) throws ClientException {
        /**
         * 点播服务接入区域
         *
         */
        String regionId = "cn-shanghai";
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        return new DefaultAcsClient(profile);
    }
}
